<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>本地存储</title>
</head>
<body>
	<script>
		// var obj = {
		// 	name:'张三'
		// }
		var arr = ['123123','方式发顺丰'];
		// 会调用obj.toString()方法
		console.log(JSON.parse('[1231231,233]'));
		console.log(arr);
		var cc = {name:1,age:2}
		console.log(cc);
		console.log(JSON.stringify(cc));
		localStorage.setItem('obj',JSON.stringify(cc))
	</script>
</body>
</html>